package co.com.smart.eagle.client.view;

import java.util.List;

import co.com.smart.eagle.client.view.impl.CrearRolesViewImpl.FocusRolPlace;
import co.com.smart.eagle.infrastructure.dto.RolesDTO;

import com.google.gwt.user.client.ui.IsWidget;


public interface CrearRolesView extends IsWidget{
	
	public interface Presenter{
		void crearRol();
		void cargarRoles();
		boolean validateCreateRol();
		void editRol(RolesDTO rol);
		void deleteRol(RolesDTO rol);
	}
	
	void setPresenter(Presenter presenter);
	void setRolName(String value);
	void setFocus(FocusRolPlace focus);
	boolean validatefields();
	void cleanForm();
	void setRoles(List<RolesDTO> roles);
	void setTextBtnGrabar(String text);
	String getRolName();

}
